package com.emellend.api.list;

import android.app.ListActivity;
import android.database.Cursor;
import android.os.Bundle;
import android.provider.ContactsContract.CommonDataKinds.Phone;
import android.widget.SimpleCursorAdapter;

public class List3 extends ListActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Cursor cursor = getContentResolver().query(Phone.CONTENT_URI, null, null, null, null);
		startManagingCursor(cursor);
		setListAdapter(new SimpleCursorAdapter(this, android.R.layout.simple_list_item_2,
				cursor, new String[]{Phone.DISPLAY_NAME,Phone.NUMBER}, 
				new int[]{android.R.id.text1,android.R.id.text2}));
	}
}
